.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #8fa1f0 50%, #9a7bc2 50%);
  position: relative;
  overflow: hidden;
}

/* 浮动小方块动画 */
.floating-cubes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cube {
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cube:nth-child(1) {
  left: 5%;
  top: 10%;
  animation-delay: 0s;
  background: linear-gradient(45deg, #ff6b6b, #ffa726);
}

.cube:nth-child(2) {
  left: 95%;
  top: 20%;
  animation-delay: 1s;
  background: linear-gradient(45deg, #4ecdc4, #26c6da);
}

.cube:nth-child(3) {
  left: 8%;
  top: 40%;
  animation-delay: 2s;
  background: linear-gradient(45deg, #42b883, #347474);
}

.cube:nth-child(4) {
  left: 92%;
  top: 50%;
  animation-delay: 3s;
  background: linear-gradient(45deg, #ffd93d, #ff9a3d);
}

.cube:nth-child(5) {
  left: 12%;
  top: 70%;
  animation-delay: 4s;
  background: linear-gradient(45deg, #6a89cc, #4a69bd);
}

.cube:nth-child(6) {
  left: 88%;
  top: 80%;
  animation-delay: 5s;
  background: linear-gradient(45deg, #fd79a8, #e84393);
}

.cube:nth-child(7) {
  left: 3%;
  top: 30%;
  animation-delay: 6s;
  background: linear-gradient(45deg, #00b894, #00a085);
}

.cube:nth-child(8) {
  left: 97%;
  top: 60%;
  animation-delay: 7s;
  background: linear-gradient(45deg, #e17055, #d63031);
}

.cube:nth-child(9) {
  left: 15%;
  top: 85%;
  animation-delay: 8s;
  background: linear-gradient(45deg, #a29bfe, #6c5ce7);
}

.cube:nth-child(10) {
  left: 85%;
  top: 15%;
  animation-delay: 9s;
  background: linear-gradient(45deg, #fdcb6e, #e17055);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}

.register-card {
  width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.card-header {
  text-align: center;
}

.card-header h2 {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  font-size: 24px;
}

.register-form {
  padding: 20px 0;
}

.register-button {
  width: 100%;
}

.login-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.login-link a {
  color: #409eff;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

.captcha-container {
  display: flex;
  align-items: center;
}

.captcha-image {
  margin-left: 10px;
  width: 150px;
  height: 40px;
  cursor: pointer;
  overflow: visible;
}

.captcha-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
